#pragma once

#include <allegro5\allegro.h>
#include <allegro5/allegro_image.h>
#include "Arena.h"
#include "player.h"


using namespace std;

class Questions
{
private:
	int m_xpos;
	int m_ypos;
	bool m_is_answered;
	bool m_is_device;
	ALLEGRO_BITMAP* m_bitmap;
	ALLEGRO_BITMAP* m_question;
	bool m_render_question;
	int m_width;
	int m_height;
	int m_current_frame;
	Arena* m_arena;
	int m_question_width;
	int m_question_height;
	int m_current_answer;
	int m_correct_answer;
	int m_id;
public:
	Questions(Arena* arena, const char* filename, int correct_answer, int id);
	bool Answered();
	void Spawn();
	void Render();
	void NextFrame();
	bool CollideWithPlayer(player* guy);
	void RenderQuestion();
	void NextAnswer();
	void PreviousAnswer();
	bool GetRender();
	bool IsDevice();
	int getID();
};